Maximum size of a cycle is 10 (except in the single cycle case).
Suggested grouping of tests:
[0, 1]
[2, 5]
[6, 19] or ([6, 15] and [16, 19] - however, this may give many points to the N^3 approach)

0: N=20, COMPONENTS=1
1: N=20, COMPONENTS=4
2: N=200, COMPONENTS=1
3: N=200, COMPONENTS=5
4: N=200, COMPONENTS=15
5: N=200, COMPONENTS=40
6: N=200, COMPONENTS=1
7: N=200, COMPONENTS=5
8: N=1000, COMPONENTS=20
9: N=1000, COMPONENTS=30
10: N=1000, COMPONENTS=30
11: N=1000, COMPONENTS=50
12: N=1000, COMPONENTS=100
13: N=1000, COMPONENTS=200
14: N=1000, COMPONENTS=500
15: N=1000, COMPONENTS=750
16: N=1000, isolated nodes
17: N=1000, single cycle
18: N=1000, line tree
19: N=1000, deep tree with 4 branches (connected to the root)